﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LevelEditor.model.elements
{
    class Switch : AbstractPGameObject
    {
        #region Variables
        private float m_activationMass;
        private Boolean m_isOnceActivation;
        private AbstractPGameObject m_linkedPGameObject;

        #endregion

        #region Constructeurs
        public Switch(string name, Dictionary<String, String> pGameObjectData,
                       float activationMass, Boolean isOnceActivation, AbstractPGameObject linkedPGameObject
                       )
            : base(name, pGameObjectData)
        {
            m_name = name;
            m_activationMass = activationMass;
            m_isOnceActivation = isOnceActivation;
            m_linkedPGameObject = linkedPGameObject;
        }

        #endregion

        #region Getters && Setters
        public float activationMass
        {
            get { return m_activationMass; }
            set { m_activationMass = value; }
        }

        public Boolean isOnceActivation
        {
            get { return m_isOnceActivation; }
            set { m_isOnceActivation = value; }
        }

        public AbstractPGameObject linkedPGameObject
        {
            get { return m_linkedPGameObject; }
            set { m_linkedPGameObject = value; }
        }

        #endregion
    }
}
